package com.cskaoyan.bean;

import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.lang.model.element.VariableElement;
import java.util.*;

/**
 * @ClassName:MarketChannel
 * @Description:TODO
 * @author:leiwenjie
 * @date:2022/9/9 14:32
 * @version:1.0
 */
@Data
public class MarketChannel {


    private String code;
    private String name;




   /*public static List<String> getList(){
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("ZTO","中通快递");
        hashMap.put("YTO", "圆通速递");
        hashMap.put("YD", "韵达速递");
        hashMap.put("YZPY", "邮政快递包裹");
        hashMap.put("EMS", "EMS");
        hashMap.put("DBL", "德邦快递");
        hashMap.put("FAST", "快捷快递");
        hashMap.put("ZJS", "宅急送");
        hashMap.put("UPS", "UPS");
        hashMap.put("DHL", "DHL");
        hashMap.put("FEDEX", "FEDEX联邦(国内件)");
        hashMap.put("FEDEX_GJ", "FEDEX联邦(国际件)");

        Set<Map.Entry<String, String>> entries = hashMap.entrySet();
        ArrayList<String> list = new ArrayList<>();
        for (Map.Entry<String, String> entry : entries) {
            String code = entry.getKey();
            String name = entry.getValue();
            list.add("code:" + "\"" + code + "\"" + "," + "name:" + "\"" + name + "\"");
        }


        return list;*/


//    List<T> list;


   /* public static MarketChannel getList(){
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("ZTO","中通快递");
        hashMap.put("YTO", "圆通速递");
        hashMap.put("YD", "韵达速递");
        hashMap.put("YZPY", "邮政快递包裹");
        hashMap.put("EMS", "EMS");
        hashMap.put("DBL", "德邦快递");
        hashMap.put("FAST", "快捷快递");
        hashMap.put("ZJS", "宅急送");
        hashMap.put("UPS", "UPS");
        hashMap.put("DHL", "DHL");
        hashMap.put("FEDEX", "FEDEX联邦(国内件)");
        hashMap.put("FEDEX_GJ", "FEDEX联邦(国际件)");

        Set<Map.Entry<String, String>> entries = hashMap.entrySet();
        ArrayList<String> list = new ArrayList<>();
        for (Map.Entry<String, String> entry : entries) {
            String code = entry.getKey();
            String name = entry.getValue();
            list.add("code:" + "\"" + code + "\"" + "," + "name:" + "\"" + name + "\"");
        }

        MarketChannel channel = new MarketChannel();
        ArrayList<String> newList = new ArrayList<>();
        for (String s : list) {
            String s1="";
            BeanUtils.copyProperties(s,s1);
            newList.add(s1);
        }

        channel.setList(newList);
        return channel;
*/
}




